

const express=require('express')
const fs= require('fs')
const path=require('path')
const app= express()

const compression = require('compression')

app.use(compression())

let pathName= path.resolve(__dirname,'./dist')
app.use(express.static(pathName))

app.listen(3000,()=>{
    console.log('server running')
})